"use client";
import { Button } from "@/components/ui/button";
import { useRouter, useSearchParams } from "next/navigation";
export default function Page() {
    const router = useRouter();
    const searchParams = useSearchParams();
    const error = searchParams.get("error");
    return (
        <>
            <div className="w-80 flex flex-col justify-center gap-4">
                <div className="h-20 text-primary text-xl w-full flex justify-center">Error: {error}</div>
                <Button
                    className="w-full h-12 cursor-pointer hover:font-bold underline underline-offset-4 hover:no-underline"
                    onClick={() => router.push("/")}
                    variant={"ghost"}
                >
                    Back to Home
                </Button>
            </div>
        </>
    );
}
